﻿var status = 0;

var time = java.util.Calendar.getInstance();
var year = time.get(java.util.Calendar.YEAR);           //获得年份
var month = time.get(java.util.Calendar.MONTH) + 1;     //获得月份
var day = time.get(java.util.Calendar.DATE);            //获取日
var hour = time.get(java.util.Calendar.HOUR_OF_DAY);    //获得小时
var minute = time.get(java.util.Calendar.MINUTE);       //获得分钟
var second = time.get(java.util.Calendar.SECOND);       //获得秒
//var eff1 = "#fEffect/CharacterEff/1114000/1/0#"; //红星花
//var eff1 = "#fUI/StarCityUI.img/GradeInfo/icon_ss/7#"
//var eff1 = "#fEffect/CharacterEff/1112949/3/0#"; //花样音符
var eff1 = "#fUI/StarCityUI.img/GradeInfo/icon_ss/7#"
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
            cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
            cm.dispose();
        } else if (status == 0) {
        var selStr = "\t"+"请选择您要去收集的地图#k\r\n";
		selStr += "#L1#" + eff1 + "【简单】　　蝴蝶精　  #l\r\n\r\n";
        	selStr += "#L2#" + eff1 + "【中级】　　哈闷气球　#l\r\n\r\n";	
		selStr += "#L3#" + eff1 + "【高级】　　[★]忘却的神官　#l\r\n\r\n";	
		selStr += "#L4#" + eff1 + "【超级】    堕落树世界所有怪物  #l\r\n\r\n";
		        cm.sendSimple(selStr);
    } else if (status == 1) {
        if (selection == 1) {
        cm.warp(101020200);
	cm.dispose();
        } else if (selection == 2) {
	cm.warp(261010103);
	cm.dispose();
 	} else if (selection == 3) {
	cm.dispose();
	cm.warp(270030610);
        } else if (selection == 4) {
	cm.warp(105300000);
        cm.dispose();
		}
    }
}
